<?php
/**
 * Created by IntelliJ IDEA
 * Author: 张伯发
 * Date  : 2019/11/18
 * Time  : 23:13
 */

namespace Xiaoproject\Common\Json;


use Xiaoproject\Common\Constant\Response;
use Xiaoproject\Common\StaticBuilder;

/**
 * Class Json
 * @author 张伯发 2019/11/18 23:13
 * @method static array P(int $code = Response::CODE_SUCCESS, $data = null, string $msg = '')
 * @method static array S($data = null, string $msg = ''): array
 * @method static array SMessage(string $msg = '', $data = null)
 * @method static array E(string $msg = '')
 */
class Json extends StaticBuilder
{
    /**
     *
     * @return object Builder
     * @author 张伯发 2019/11/18 23:16
     */
    public function newBuilder()
    {
        // TODO: Implement newBuilder() method.
        return new JsonBuilder();
    }
}
